﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <script src="Script/jquery-1.8.0.js"></script>
    <script>
        //dom对象，窗体对象，jquery框架，json数据，js面向对象
        $(function () {
            function doSomething(str) {
                window.alert(str);
            };

            var obj = {
                Method: function (str) {
                    window.alert(str);
                }, UserName: "Skyen",
            };

            var object = { Method: doSomething, UserName: "Skyen", };
            object.Method("DoSomething");
        });
    </script>
    <title></title>
</head>
<body>
</body>
</html>
